﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TuanHuy.BLL;

public partial class MasterPage : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            loadProductCatolery();
            loadCatolery();
        }
    }

    private void loadProductCatolery()
    {
        rpProductCatolory.DataSource = CategoryManager.CreateInstant().SelectAllLST().ToList();
        rpProductCatolory.DataBind();

    }

    private void loadCatolery()
    {
        rpProjectCatolory.DataSource = ProjectCatogeryManager.CreateInstant().SelectAllLST().ToList();
        rpProjectCatolory.DataBind();
    }
}
